Skip to content

fix: html entities footer rendering#6966

Merged
vitormattos merged 4 commits intomainfrom
fix/html-entities-footer-rendering
Feb 19, 2026
Merged

fix: html entities footer rendering#6966
vitormattos merged 4 commits intomainfrom
fix/html-entities-footer-rendering

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

Variables signedBy and validateIn are already escaped by htmlentities()
in FooterHandler. Adding |raw filter prevents Twig from escaping again,
which was causing HTML entities to appear literally in PDF footers.

Fixes #6961

Signed-off-by: Vitor Mattos <[email protected]>
Add DataProvider test with 14 scenarios covering:
- European languages (French, Portuguese, Spanish, German)
- Greek and Cyrillic alphabets
- RTL languages (Arabic, Hebrew)
- CJK scripts (Chinese, Japanese, Korean)
- Emoji and mixed character sets

Validates that accented characters and special Unicode render correctly
in PDF footers without HTML entity escaping.

Related to #6961

Signed-off-by: Vitor Mattos <[email protected]>
Add explicit comments warning translators not to translate mustache
template variables ({{variableName}}) in signature text strings.
This prevents corruption of template syntax during localization.

Discovered during investigation of #6961 where French translation
had corrupted mustache braces.

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos self-assigned this Feb 19, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Feb 19, 2026
Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable33

@vitormattos vitormattos merged commit 3b5298c into main Feb 19, 2026
70 checks passed
@vitormattos vitormattos deleted the fix/html-entities-footer-rendering branch February 19, 2026 17:52
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant